import { createRoot } from "react-dom/client";

// 导入provider
import { RouterProvider } from "react-router-dom";
// 导入router实例
import { router } from "./router";

// import { fetchChannelsAPI } from "@/apis/list";
// // 明确导入类型
// import type { ResType, ChannelRes } from "@/apis/list"; 

// // 调用函数并处理 Promise
// fetchChannelsAPI().then((res: ResType<ChannelRes>) => {
//     console.log(res.data.data.channels);
// })

createRoot(document.getElementById("root")!).render(
    <RouterProvider router={router} />
);
